import java.util.ArrayList;
import java.util.List;

public class PokerGame {
	
	private List<PokerPlayer> players = new ArrayList<PokerPlayer>();
	private PokerDeck deck;
	private int personPosition;
	
	PokerGame(int playerCount, int startingScore, int person) {
		this.deck = new PokerDeck();
		PokerPlayer player;
		for (int i = 0; i < playerCount; i++) {
			player = new PokerPlayer("player"+1, startingScore);
			player.setCard1(this.deck.deal());
			player.setCard2(this.deck.deal());
			players.add(player);
			
		}
		this.personPosition = person;
	}
	
	public PokerPlayer getPlayer(int position) {
		return this.players.get(position);
	}
	
	public int getPersonPosition() {
		return this.personPosition;
	}
	
}
